<?php

class Project extends Eloquent {

    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $table = 'projects';

    public function owner()
    {
        return $this->belongsTo('User','uid');
    }

    public function joiners()
    {
        return $this->belongsToMany('User', 'project_joiners');
    }
}